<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      xfce4-session-4.14.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;35.&nbsp;Xfce Desktop
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="xfwm4.html" title="Xfwm4-4.14.0">Prev</a>
          <p>
            Xfwm4-4.14.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xfce-apps.html" title=
          "Xfce Applications">Next</a>
          <p>
            Xfce Applications
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="xfce-core.html" title=
          "Chapter&nbsp;35.&nbsp;Xfce Desktop">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="xfce4-session" name="xfce4-session"></a>xfce4-session-4.14.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Xfce4 Session
        </h2>
        <p>
          <span class="application">Xfce4 Session</span> is a session manager
          for <span class="application">Xfce</span>. Its task is to save the
          state of your desktop (opened applications and their location) and
          restore it during a next startup. You can create several different
          sessions and choose one of them on startup.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://archive.xfce.org/src/xfce/xfce4-session/4.14/xfce4-session-4.14.1.tar.bz2">
                http://archive.xfce.org/src/xfce/xfce4-session/4.14/xfce4-session-4.14.1.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 36593207ac0c67c81907a4846f4b604c
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 820 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 14 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Xfce4 Session Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../gnome/libwnck.html" title=
          "libwnck-3.32.0">libwnck-3.32.0</a>, <a class="xref" href=
          "libxfce4ui.html" title="libxfce4ui-4.14.1">libxfce4ui-4.14.1</a>,
          <a class="xref" href="../general/which.html" title=
          "Which-2.21 and Alternatives">Which-2.21</a>, and <a class="xref"
          href="../x/x7app.html" title="Xorg Applications">Xorg
          Applications</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/desktop-file-utils.html" title=
          "desktop-file-utils-0.24">desktop-file-utils-0.24</a>, <a class=
          "xref" href="../general/shared-mime-info.html" title=
          "shared-mime-info-1.15">shared-mime-info-1.15</a> and <a class=
          "xref" href="../gnome/polkit-gnome.html" title=
          "polkit-gnome-0.105">polkit-gnome-0.105</a>
        </p>
        <h4>
          Required Runtime
        </h4>
        <p class="required">
          <a class="xref" href="xfdesktop.html" title=
          "Xfdesktop-4.14.2">Xfdesktop-4.14.2</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/xfce4-session">http://wiki.linuxfromscratch.org/blfs/wiki/xfce4-session</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Xfce4 Session
        </h2>
        <p>
          Install <span class="application">Xfce4 Session</span> by running
          the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr \
            --sysconfdir=/etc \
            --disable-legacy-sm &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-legacy-sm</code></em>: This
          switch disables legacy session management which isn't necessary on
          modern system.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Xfce4 Session
        </h2>
        <p>
          There are several optional run time dependencies for <span class=
          "application">Xfce4</span>: <a class="xref" href=
          "../general/dbus.html" title="dbus-1.12.16">dbus-1.12.16</a>,
          <a class="xref" href="../postlfs/gnupg.html" title=
          "GnuPG-2.2.19">GnuPG-2.2.19</a>, <a class="xref" href=
          "../x/hicolor-icon-theme.html" title=
          "hicolor-icon-theme-0.17">hicolor-icon-theme-0.17</a> and <a class=
          "xref" href="../postlfs/openssh.html" title=
          "OpenSSH-8.2p1">OpenSSH-8.2p1</a>
        </p>
        <p>
          When building an <span class="application">Xfce4</span> package,
          some configuration files are installed in <code class=
          "filename">/usr/share/applications</code>, <code class=
          "filename">/usr/share/icons</code>, and <code class=
          "filename">/usr/share/mime</code>. In order to use those files in
          your <span class="application">Xfce4</span> session, you need to
          update various databases. Do that by running, as the <code class=
          "systemitem">root</code> user (you need to have the recommended
          dependencies installed):
        </p>
        <pre class="root">
<kbd class="command">update-desktop-database &amp;&amp;
update-mime-database /usr/share/mime</kbd>
</pre>
      </div>
      <div class="starting" lang="en" xml:lang="en">
        <h2 class="sect2">
          Starting Xfce4
        </h2>
        <p>
          You can start <span class="application">Xfce4</span> from runlevel
          3, using <a class="xref" href="../x/xinit.html" title=
          "xinit-1.4.1">xinit-1.4.1</a>, or from runlevel 5, using a Display
          Manager, such as <a class="xref" href="../x/lightdm.html" title=
          "lightdm-1.30.0">lightdm-1.30.0</a>.
        </p>
        <p>
          To start <span class="application">Xfce4</span> using <a class=
          "xref" href="../x/xinit.html" title="xinit-1.4.1">xinit-1.4.1</a>,
          run the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">cat &gt; ~/.xinitrc &lt;&lt; "EOF"
<code class="literal">dbus-launch --exit-with-session startxfce4</code>
EOF

startx</kbd>
</pre>
        <p>
          The X session starts on the first unused virtual terminal, normally
          vt7. You can switch to another vt<span class=
          "emphasis"><em>n</em></span> simultaneously pressing the keys
          Ctrl-Alt-F<span class="emphasis"><em>n</em></span> (<span class=
          "emphasis"><em>n</em></span>=1, 2, ...). To switch back to the X
          session, normally started at vt7, use Ctrl-Alt-F7. The vt where the
          command <span class="command"><strong>startx</strong></span> was
          executed will display many messages, including X starting messages,
          applications automatically started with the session, and
          eventually, some warning and error messages. You may prefer to
          redirect those messages to a log file, which not only will keep the
          initial vt uncluttered, but can also be used for debugging
          purposes. This can be done starting X with:
        </p>
        <pre class="userinput">
<kbd class="command">startx &amp;&gt; ~/.x-session-errors</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            You may wish to drop dbus-launch, e.g., just using startxfce4 in
            ~/.xinitrc. However some capabilities such as mounting or
            umounting file systems from a file manager will not be possible,
            or the reboot option will be absent or inoperative, among other
            problems.
          </p>
        </div>
        <p>
          When shutting down or rebooting, the shutdown messages appear on
          the vt where X was running. If you wish to see those messages,
          simultaneously press keys Alt-F7 (assuming that X was running on
          vt7).
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">xfce4-session, xfce4-session-logout,
              xfce4-session-settings and xfce4-tips</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libxfsm-4.6.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/xfce4/xfce4-session-4.6,
              /usr/share/xfce4/tips and
              /usr/share/doc/xfce4-session-4.14.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="xfce4-session-prog" name=
                    "xfce4-session-prog"></a><span class="term"><span class=
                    "command"><strong>xfce4-session</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    starts up the <span class="application">Xfce</span>
                    Desktop Environment.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xfce4-session-logout" name=
                    "xfce4-session-logout"></a><span class=
                    "term"><span class="command"><strong>xfce4-session-logout</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    logs out from <span class="application">Xfce</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xfce4-session-settings" name=
                    "xfce4-session-settings"></a><span class=
                    "term"><span class=
                    "command"><strong>xfce4-session-settings</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a <span class="application">GTK+ 2</span> GUI which
                    allows you to alter your preferences for your
                    <span class="application">Xfce Session</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xfce4-tips" name="xfce4-tips"></a><span class=
                    "term"><span class=
                    "command"><strong>xfce4-tips</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a <span class="application">GTK+ 2</span> GUI which
                    displays tips when you log in to an <span class=
                    "application">Xfce Session</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libxfsm-4" name="libxfsm-4"></a><span class=
                    "term"><code class=
                    "filename">libxfsm-4.6.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the <span class="application">Xfce
                    Session</span> API functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 12:12:55 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="xfwm4.html" title="Xfwm4-4.14.0">Prev</a>
          <p>
            Xfwm4-4.14.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xfce-apps.html" title=
          "Xfce Applications">Next</a>
          <p>
            Xfce Applications
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="xfce-core.html" title=
          "Chapter&nbsp;35.&nbsp;Xfce Desktop">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
